home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1988-11-21 | 8.9 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
1%
| dexvert
| Applause Picture (image/applausePicture)
| ext
| Unsupported |
1%
| dexvert
| bsdiff patch (other/bsdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| imgdiff patch (other/imgdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| MATLAB p-code (other/matlabPCode)
| ext
| Unsupported |
1%
| dexvert
| WSUS Patch Storage File (other/wsusPatchStorageFile)
| ext
| Unsupported |
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Nov 21 15:01:06 1988, modified Mon Nov 21 15:01:06 1988, creator 'MPS ', type ASCII, 8459 bytes "PaintToolDemo.p" , at 0x218b 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 50 61 69 6e 74 54 | 6f 6f 6c 44 65 6d 6f 2e |..PaintT|oolDemo.|
|00000010| 70 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 21 0b 00 | 00 01 7e 9f ae 26 82 9f |.....!..|..~..&..|
|00000060| ae 26 82 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.&......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 cf 98 00 00 |........|........|
|00000080| 50 72 6f 67 72 61 6d 20 | 50 54 44 65 6d 6f 3b 0d |Program |PTDemo;.|
|00000090| 0d 55 73 65 73 0d 20 20 | 4d 65 6d 54 79 70 65 73 |.Uses. |MemTypes|
|000000a0| 2c 51 75 69 63 6b 44 72 | 61 77 2c 4f 53 49 6e 74 |,QuickDr|aw,OSInt|
|000000b0| 66 2c 54 6f 6f 6c 49 6e | 74 66 2c 50 61 63 6b 49 |f,ToolIn|tf,PackI|
|000000c0| 6e 74 66 2c 0d 20 20 50 | 61 69 6e 74 54 6f 6f 6c |ntf,. P|aintTool|
|000000d0| 55 6e 69 74 3b 0d 20 20 | 0d 43 6f 6e 73 74 0d 20 |Unit;. |.Const. |
|000000e0| 20 41 70 70 6c 65 4d 65 | 6e 75 20 20 20 20 20 3d | AppleMe|nu =|
|000000f0| 20 31 32 38 3b 0d 20 20 | 46 69 6c 65 4d 65 6e 75 | 128;. |FileMenu|
|00000100| 20 20 20 20 20 20 3d 20 | 31 32 39 3b 0d 20 20 45 | = |129;. E|
|00000110| 64 69 74 4d 65 6e 75 20 | 20 20 20 20 20 3d 20 31 |ditMenu | = 1|
|00000120| 33 30 3b 0d 20 20 54 6f | 6f 6c 4d 65 6e 75 20 20 |30;. To|olMenu |
|00000130| 20 20 20 20 3d 20 31 33 | 31 3b 0d 20 20 20 20 69 | = 13|1;. i|
|00000140| 74 65 6d 50 65 6e 63 69 | 6c 20 20 20 3d 20 31 3b |temPenci|l = 1;|
|00000150| 0d 20 20 20 20 69 74 65 | 6d 42 75 63 6b 65 74 20 |. ite|mBucket |
|00000160| 20 20 3d 20 32 3b 0d 20 | 20 20 20 69 74 65 6d 42 | = 2;. | itemB|
|00000170| 72 75 73 68 20 20 20 20 | 3d 20 33 3b 0d 20 20 20 |rush |= 3;. |
|00000180| 20 69 74 65 6d 53 70 72 | 61 79 20 20 20 20 3d 20 | itemSpr|ay = |
|00000190| 34 3b 0d 20 20 20 20 69 | 74 65 6d 4c 69 6e 65 20 |4;. i|temLine |
|000001a0| 20 20 20 20 3d 20 35 3b | 0d 20 20 20 20 69 74 65 | = 5;|. ite|
|000001b0| 6d 45 72 61 73 65 72 20 | 20 20 3d 20 36 3b 0d 20 |mEraser | = 6;. |
|000001c0| 20 20 20 69 74 65 6d 52 | 65 63 74 20 20 20 20 20 | itemR|ect |
|000001d0| 3d 20 38 3b 0d 20 20 20 | 20 69 74 65 6d 52 65 63 |= 8;. | itemRec|
|000001e0| 74 46 20 20 20 20 3d 20 | 39 3b 0d 20 20 20 20 69 |tF = |9;. i|
|000001f0| 74 65 6d 52 52 65 63 74 | 20 20 20 20 3d 20 31 30 |temRRect| = 10|
|00000200| 3b 0d 20 20 20 20 69 74 | 65 6d 52 52 65 63 74 46 |;. it|emRRectF|
|00000210| 20 20 20 3d 20 31 31 3b | 0d 20 20 20 20 69 74 65 | = 11;|. ite|
|00000220| 6d 4f 76 61 6c 20 20 20 | 20 20 3d 20 31 32 3b 0d |mOval | = 12;.|
|00000230| 20 20 20 20 69 74 65 6d | 4f 76 61 6c 46 20 20 20 | item|OvalF |
|00000240| 20 3d 20 31 33 3b 0d 20 | 20 20 20 69 74 65 6d 41 | = 13;. | itemA|
|00000250| 72 63 20 20 20 20 20 20 | 3d 20 31 34 3b 0d 20 20 |rc |= 14;. |
|00000260| 20 20 69 74 65 6d 41 72 | 63 46 20 20 20 20 20 3d | itemAr|cF =|
|00000270| 20 31 35 3b 0d 20 20 20 | 20 69 74 65 6d 52 4c 69 | 15;. | itemRLi|
|00000280| 6e 65 20 20 20 20 3d 20 | 31 37 3b 0d 20 20 20 20 |ne = |17;. |
|00000290| 69 74 65 6d 52 4c 69 6e | 65 46 20 20 20 3d 20 31 |itemRLin|eF = 1|
|000002a0| 38 3b 0d 20 20 50 61 74 | 74 65 72 6e 4d 65 6e 75 |8;. Pat|ternMenu|
|000002b0| 20 20 20 3d 20 31 33 32 | 3b 0d 20 20 50 65 6e 53 | = 132|;. PenS|
|000002c0| 69 7a 65 4d 65 6e 75 20 | 20 20 3d 20 31 33 33 3b |izeMenu | = 133;|
|000002d0| 0d 20 20 0d 56 61 72 0d | 20 20 6d 79 4d 65 6e 75 |. .Var.| myMenu|
|000002e0| 73 20 20 20 20 20 20 20 | 3a 20 61 72 72 61 79 20 |s |: array |
|000002f0| 5b 41 70 70 6c 65 4d 65 | 6e 75 2e 2e 50 65 6e 53 |[AppleMe|nu..PenS|
|00000300| 69 7a 65 4d 65 6e 75 5d | 20 6f 66 20 4d 65 6e 75 |izeMenu]| of Menu|
|00000310| 48 61 6e 64 6c 65 3b 0d | 20 20 53 70 72 61 79 43 |Handle;.| SprayC|
|00000320| 75 72 73 20 20 20 20 20 | 3a 20 43 75 72 73 48 61 |urs |: CursHa|
|00000330| 6e 64 6c 65 3b 0d 20 20 | 43 72 6f 73 73 43 75 72 |ndle;. |CrossCur|
|00000340| 73 20 20 20 20 20 3a 20 | 43 75 72 73 48 61 6e 64 |s : |CursHand|
|00000350| 6c 65 3b 0d 20 20 45 72 | 61 73 65 43 75 72 73 20 |le;. Er|aseCurs |
|00000360| 20 20 20 20 3a 20 43 75 | 72 73 48 61 6e 64 6c 65 | : Cu|rsHandle|
|00000370| 3b 0d 20 20 74 68 65 57 | 69 6e 64 6f 77 20 20 20 |;. theW|indow |
|00000380| 20 20 3a 20 57 69 6e 64 | 6f 77 50 74 72 3b 0d 20 | : Wind|owPtr;. |
|00000390| 20 47 72 6f 77 41 72 65 | 61 20 20 20 20 20 20 3a | GrowAre|a :|
|000003a0| 20 52 65 63 74 3b 0d 20 | 20 43 75 72 72 65 6e 74 | Rect;. | Current|
|000003b0| 54 6f 6f 6c 20 20 20 3a | 20 49 6e 74 65 67 65 72 |Tool :| Integer|
|000003c0| 3b 0d 20 20 43 75 72 72 | 65 6e 74 50 61 74 20 20 |;. Curr|entPat |
|000003d0| 20 20 3a 20 49 6e 74 65 | 67 65 72 3b 0d 20 20 43 | : Inte|ger;. C|
|000003e0| 75 72 72 65 6e 74 53 69 | 7a 65 20 20 20 3a 20 49 |urrentSi|ze : I|
|000003f0| 6e 74 65 67 65 72 3b 0d | 0d 50 72 6f 63 65 64 75 |nteger;.|.Procedu|
|00000400| 72 65 20 5f 44 61 74 61 | 49 6e 69 74 3b 20 65 78 |re _Data|Init; ex|
|00000410| 74 65 72 6e 61 6c 3b 0d | 0d 7b 23 23 23 23 23 23 |ternal;.|.{######|
|00000420| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000430| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000440| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000450| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000460| 23 23 23 23 23 23 23 23 | 23 7d 0d 0d 50 72 6f 63 |########|#}..Proc|
|00000470| 65 64 75 72 65 20 50 72 | 6f 63 65 73 73 4d 65 6e |edure Pr|ocessMen|
|00000480| 75 28 63 6f 64 65 57 6f | 72 64 20 3a 20 4c 6f 6e |u(codeWo|rd : Lon|
|00000490| 67 69 6e 74 29 3b 09 7b | 20 68 61 6e 64 6c 65 20 |gint);.{| handle |
|000004a0| 6d 65 6e 75 20 73 65 6c | 65 63 74 69 6f 6e 73 7d |menu sel|ections}|
|000004b0| 0d 56 61 72 0d 20 20 6d | 65 6e 75 4e 75 6d 20 20 |.Var. m|enuNum |
|000004c0| 20 3a 20 49 6e 74 65 67 | 65 72 3b 0d 20 20 69 74 | : Integ|er;. it|
|000004d0| 65 6d 4e 75 6d 20 20 20 | 3a 20 49 6e 74 65 67 65 |emNum |: Intege|
|000004e0| 72 3b 0d 20 20 74 68 65 | 53 74 72 20 20 20 20 3a |r;. the|Str :|
|000004f0| 20 53 74 72 32 35 35 3b | 0d 20 20 64 75 6d 6d 79 | Str255;|. dummy|
|00000500| 20 20 20 20 20 3a 20 49 | 6e 74 65 67 65 72 3b 0d | : I|nteger;.|
|00000510| 20 20 69 6e 64 65 78 20 | 20 20 20 20 3a 20 49 6e | index | : In|
|00000520| 74 65 67 65 72 3b 0d 42 | 65 67 69 6e 0d 20 20 69 |teger;.B|egin. i|
|00000530| 66 20 63 6f 64 65 57 6f | 72 64 20 3c 3e 20 30 20 |f codeWo|rd <> 0 |
|00000540| 74 68 65 6e 20 62 65 67 | 69 6e 0d 20 20 20 20 6d |then beg|in. m|
|00000550| 65 6e 75 4e 75 6d 20 3a | 3d 20 48 69 57 6f 72 64 |enuNum :|= HiWord|
|00000560| 28 63 6f 64 65 57 6f 72 | 64 29 3b 0d 20 20 20 20 |(codeWor|d);. |
|00000570| 69 74 65 6d 4e 75 6d 20 | 3a 3d 20 4c 6f 57 6f 72 |itemNum |:= LoWor|
|00000580| 64 28 63 6f 64 65 57 6f | 72 64 29 3b 0d 20 20 20 |d(codeWo|rd);. |
|00000590| 20 63 61 73 65 20 6d 65 | 6e 75 4e 75 6d 20 6f 66 | case me|nuNum of|
|000005a0| 20 7b 20 74 68 65 20 64 | 69 66 66 65 72 65 6e 74 | { the d|ifferent|
|000005b0| 20 6d 65 6e 75 73 7d 0d | 20 20 20 20 20 20 41 70 | menus}.| Ap|
|000005c0| 70 6c 65 4d 65 6e 75 20 | 3a 0d 20 20 20 20 20 20 |pleMenu |:. |
|000005d0| 20 20 62 65 67 69 6e 0d | 20 20 20 20 20 20 20 20 | begin.| |
|000005e0| 20 20 69 66 20 69 74 65 | 6d 4e 75 6d 20 3d 20 31 | if ite|mNum = 1|
|000005f0| 20 74 68 65 6e 20 7b 44 | 6f 41 62 6f 75 74 7d 0d | then {D|oAbout}.|
|00000600| 20 20 20 20 20 20 20 20 | 20 20 65 6c 73 65 20 62 | | else b|
|00000610| 65 67 69 6e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |egin. | |
|00000620| 20 47 65 74 49 74 65 6d | 28 6d 79 4d 65 6e 75 73 | GetItem|(myMenus|
|00000630| 5b 41 70 70 6c 65 4d 65 | 6e 75 5d 2c 69 74 65 6d |[AppleMe|nu],item|
|00000640| 4e 75 6d 2c 74 68 65 53 | 74 72 29 3b 0d 20 20 20 |Num,theS|tr);. |
|00000650| 20 20 20 20 20 20 20 20 | 20 64 75 6d 6d 79 3a 3d | | dummy:=|
|00000660| 20 4f 70 65 6e 44 65 73 | 6b 41 63 63 28 74 68 65 | OpenDes|kAcc(the|
|00000670| 53 74 72 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |Str);. | |
|00000680| 65 6e 64 3b 0d 20 20 20 | 20 20 20 20 20 65 6e 64 |end;. | end|
|00000690| 3b 0d 20 20 20 20 20 20 | 46 69 6c 65 4d 65 6e 75 |;. |FileMenu|
|000006a0| 20 3a 20 45 78 69 74 54 | 6f 53 68 65 6c 6c 3b 0d | : ExitT|oShell;.|
|000006b0| 20 20 20 20 20 20 45 64 | 69 74 4d 65 6e 75 20 3a | Ed|itMenu :|
|000006c0| 20 69 66 20 4e 4f 54 20 | 53 79 73 74 65 6d 45 64 | if NOT |SystemEd|
|000006d0| 69 74 28 69 74 65 6d 4e | 75 6d 20 2d 20 31 29 20 |it(itemN|um - 1) |
|000006e0| 74 68 65 6e 20 3b 0d 20 | 20 20 20 20 20 54 6f 6f |then ;. | Too|
|000006f0| 6c 4d 65 6e 75 20 3a 0d | 20 20 20 20 20 20 20 20 |lMenu :.| |
|00000700| 62 65 67 69 6e 0d 20 20 | 20 20 20 20 20 20 20 20 |begin. | |
|00000710| 66 6f 72 20 69 6e 64 65 | 78 3a 3d 20 31 20 74 6f |for inde|x:= 1 to|
|00000720| 20 43 6f 75 6e 74 4d 49 | 74 65 6d 73 28 6d 79 4d | CountMI|tems(myM|
|00000730| 65 6e 75 73 5b 54 6f 6f | 6c 4d 65 6e 75 5d 29 20 |enus[Too|lMenu]) |
|00000740| 64 6f 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 43 |do. | C|
|00000750| 68 65 63 6b 49 74 65 6d | 28 6d 79 4d 65 6e 75 73 |heckItem|(myMenus|
|00000760| 5b 54 6f 6f 6c 4d 65 6e | 75 5d 2c 69 6e 64 65 78 |[ToolMen|u],index|
|00000770| 2c 66 61 6c 73 65 29 3b | 0d 20 20 20 20 20 20 20 |,false);|. |
|00000780| 20 20 20 43 68 65 63 6b | 49 74 65 6d 28 6d 79 4d | Check|Item(myM|
|00000790| 65 6e 75 73 5b 54 6f 6f | 6c 4d 65 6e 75 5d 2c 69 |enus[Too|lMenu],i|
|000007a0| 74 65 6d 4e 75 6d 2c 74 | 72 75 65 29 3b 0d 20 20 |temNum,t|rue);. |
|000007b0| 20 20 20 20 20 20 20 20 | 63 61 73 65 20 69 74 65 | |case ite|
|000007c0| 6d 4e 75 6d 20 6f 66 0d | 20 20 20 20 20 20 20 20 |mNum of.| |
|000007d0| 20 20 20 20 69 74 65 6d | 50 65 6e 63 69 6c 20 20 | item|Pencil |
|000007e0| 3a 20 43 75 72 72 65 6e | 74 54 6f 6f 6c 3a 3d 20 |: Curren|tTool:= |
|000007f0| 54 50 65 6e 63 69 6c 3b | 0d 20 20 20 20 20 20 20 |TPencil;|. |
|00000800| 20 20 20 20 20 69 74 65 | 6d 42 75 63 6b 65 74 20 | ite|mBucket |
|00000810| 20 3a 20 43 75 72 72 65 | 6e 74 54 6f 6f 6c 3a 3d | : Curre|ntTool:=|
|00000820| 20 54 42 75 63 6b 65 74 | 3b 0d 20 20 20 20 20 20 | TBucket|;. |
|00000830| 20 20 20 20 20 20 69 74 | 65 6d 42 72 75 73 68 20 | it|emBrush |
|00000840| 20 20 3a 20 43 75 72 72 | 65 6e 74 54 6f 6f 6c 3a | : Curr|entTool:|
|00000850| 3d 20 54 42 72 75 73 68 | 3b 0d 20 20 20 20 20 20 |= TBrush|;. |
|00000860| 20 20 20 20 20 20 69 74 | 65 6d 53 70 72 61 79 20 | it|emSpray |
|00000870| 20 20 3a 20 43 75 72 72 | 65 6e 74 54 6f 6f 6c 3a | : Curr|entTool:|
|00000880| 3d 20 54 53 70 72 61 79 | 3b 0d 20 20 20 20 20 20 |= TSpray|;. |
|00000890| 20 20 20 20 20 20 69 74 | 65 6d 4c 69 6e 65 20 20 | it|emLine |
|000008a0| 20 20 3a 20 43 75 72 72 | 65 6e 74 54 6f 6f 6c 3a | : Curr|entTool:|
|000008b0| 3d 20 54 4c 69 6e 65 3b | 0d 20 20 20 20 20 20 20 |= TLine;|. |
|000008c0| 20 20 20 20 20 69 74 65 | 6d 45 72 61 73 65 72 20 | ite|mEraser |
|000008d0| 20 3a 20 43 75 72 72 65 | 6e 74 54 6f 6f 6c 3a 3d | : Curre|ntTool:=|
|000008e0| 20 54 45 72 61 73 65 72 | 3b 0d 20 20 20 20 20 20 | TEraser|;. |
|000008f0| 20 20 20 20 20 20 69 74 | 65 6d 52 65 63 74 20 20 | it|emRect |
|00000900| 20 20 3a 20 43 75 72 72 | 65 6e 74 54 6f 6f 6c 3a | : Curr|entTool:|
|00000910| 3d 20 54 52 65 63 74 3b | 0d 20 20 20 20 20 20 20 |= TRect;|. |
|00000920| 20 20 20 20 20 69 74 65 | 6d 52 65 63 74 46 20 20 | ite|mRectF |
|00000930| 20 3a 20 43 75 72 72 65 | 6e 74 54 6f 6f 6c 3a 3d | : Curre|ntTool:=|
|00000940| 20 54 52 65 63 74 46 3b | 0d 20 20 20 20 20 20 20 | TRectF;|. |
|00000950| 20 20 20 20 20 69 74 65 | 6d 52 52 65 63 74 20 20 | ite|mRRect |
|00000960| 20 3a 20 43 75 72 72 65 | 6e 74 54 6f 6f 6c 3a 3d | : Curre|ntTool:=|
|00000970| 20 54 52 52 65 63 74 3b | 0d 20 20 20 20 20 20 20 | TRRect;|. |
|00000980| 20 20 20 20 20 69 74 65 | 6d 52 52 65 63 74 46 20 | ite|mRRectF |
|00000990| 20 3a 20 43 75 72 72 65 | 6e 74 54 6f 6f 6c 3a 3d | : Curre|ntTool:=|
|000009a0| 20 54 52 52 65 63 74 46 | 3b 0d 20 20 20 20 20 20 | TRRectF|;. |
|000009b0| 20 20 20 20 20 20 69 74 | 65 6d 4f 76 61 6c 20 20 | it|emOval |
|000009c0| 20 20 3a 20 43 75 72 72 | 65 6e 74 54 6f 6f 6c 3a | : Curr|entTool:|
|000009d0| 3d 20 54 4f 76 61 6c 3b | 0d 20 20 20 20 20 20 20 |= TOval;|. |
|000009e0| 20 20 20 20 20 69 74 65 | 6d 4f 76 61 6c 46 20 20 | ite|mOvalF |
|000009f0| 20 3a 20 43 75 72 72 65 | 6e 74 54 6f 6f 6c 3a 3d | : Curre|ntTool:=|
|00000a00| 20 54 4f 76 61 6c 46 3b | 0d 20 20 20 20 20 20 20 | TOvalF;|. |
|00000a10| 20 20 20 20 20 69 74 65 | 6d 41 72 63 20 20 20 20 | ite|mArc |
|00000a20| 20 3a 20 43 75 72 72 65 | 6e 74 54 6f 6f 6c 3a 3d | : Curre|ntTool:=|
|00000a30| 20 54 41 72 63 3b 0d 20 | 20 20 20 20 20 20 20 20 | TArc;. | |
|00000a40| 20 20 20 69 74 65 6d 41 | 72 63 46 20 20 20 20 3a | itemA|rcF :|
|00000a50| 20 43 75 72 72 65 6e 74 | 54 6f 6f 6c 3a 3d 20 54 | Current|Tool:= T|
|00000a60| 41 72 63 46 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |ArcF;. | |
|00000a70| 20 20 69 74 65 6d 52 4c | 69 6e 65 20 20 20 3a 20 | itemRL|ine : |
|00000a80| 43 75 72 72 65 6e 74 54 | 6f 6f 6c 3a 3d 20 54 52 |CurrentT|ool:= TR|
|00000a90| 4c 69 6e 65 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |Line;. | |
|00000aa0| 20 20 69 74 65 6d 52 4c | 69 6e 65 46 20 20 3a 20 | itemRL|ineF : |
|00000ab0| 43 75 72 72 65 6e 74 54 | 6f 6f 6c 3a 3d 20 54 52 |CurrentT|ool:= TR|
|00000ac0| 4c 69 6e 65 46 3b 0d 20 | 20 20 20 20 20 20 20 20 |LineF;. | |
|00000ad0| 20 65 6e 64 3b 20 7b 63 | 61 73 65 7d 0d 20 20 20 | end; {c|ase}. |
|00000ae0| 20 20 20 20 20 65 6e 64 | 3b 0d 20 20 20 20 20 20 | end|;. |
|00000af0| 50 61 74 74 65 72 6e 4d | 65 6e 75 20 3a 0d 20 20 |PatternM|enu :. |
|00000b00| 20 20 20 20 20 20 62 65 | 67 69 6e 0d 20 20 20 20 | be|gin. |
|00000b10| 20 20 20 20 20 20 43 68 | 65 63 6b 49 74 65 6d 28 | Ch|eckItem(|
|00000b20| 6d 79 4d 65 6e 75 73 5b | 50 61 74 74 65 72 6e 4d |myMenus[|PatternM|
|00000b30| 65 6e 75 5d 2c 43 75 72 | 72 65 6e 74 50 61 74 2c |enu],Cur|rentPat,|
|00000b40| 66 61 6c 73 65 29 3b 0d | 20 20 20 20 20 20 20 20 |false);.| |
|00000b50| 20 20 43 75 72 72 65 6e | 74 50 61 74 3a 3d 20 69 | Curren|tPat:= i|
|00000b60| 74 65 6d 4e 75 6d 3b 0d | 20 20 20 20 20 20 20 20 |temNum;.| |
|00000b70| 20 20 43 68 65 63 6b 49 | 74 65 6d 28 6d 79 4d 65 | CheckI|tem(myMe|
|00000b80| 6e 75 73 5b 50 61 74 74 | 65 72 6e 4d 65 6e 75 5d |nus[Patt|ernMenu]|
|00000b90| 2c 43 75 72 72 65 6e 74 | 50 61 74 2c 74 72 75 65 |,Current|Pat,true|
|00000ba0| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 53 65 74 |);. | Set|
|00000bb0| 50 6f 72 74 28 74 68 65 | 57 69 6e 64 6f 77 29 3b |Port(the|Window);|
|00000bc0| 0d 20 20 20 20 20 20 20 | 20 20 20 63 61 73 65 20 |. | case |
|00000bd0| 43 75 72 72 65 6e 74 50 | 61 74 20 6f 66 0d 20 20 |CurrentP|at of. |
|00000be0| 20 20 20 20 20 20 20 20 | 20 20 31 20 3a 20 50 65 | | 1 : Pe|
|00000bf0| 6e 50 61 74 28 77 68 69 | 74 65 29 3b 0d 20 20 20 |nPat(whi|te);. |
|00000c00| 20 20 20 20 20 20 20 20 | 20 32 20 3a 20 50 65 6e | | 2 : Pen|
|00000c10| 50 61 74 28 6c 74 47 72 | 61 79 29 3b 0d 20 20 20 |Pat(ltGr|ay);. |
|00000c20| 20 20 20 20 20 20 20 20 | 20 33 20 3a 20 50 65 6e | | 3 : Pen|
|00000c30| 50 61 74 28 67 72 61 79 | 29 3b 0d 20 20 20 20 20 |Pat(gray|);. |
|00000c40| 20 20 20 20 20 20 20 34 | 20 3a 20 50 65 6e 50 61 | 4| : PenPa|
|00000c50| 74 28 64 6b 47 72 61 79 | 29 3b 0d 20 20 20 20 20 |t(dkGray|);. |
|00000c60| 20 20 20 20 20 20 20 35 | 20 3a 20 50 65 6e 50 61 | 5| : PenPa|
|00000c70| 74 28 62 6c 61 63 6b 29 | 3b 0d 20 20 20 20 20 20 |t(black)|;. |
|00000c80| 20 20 20 20 65 6e 64 0d | 20 20 20 20 20 20 20 20 | end.| |
|00000c90| 65 6e 64 3b 0d 20 20 20 | 20 20 20 50 65 6e 53 69 |end;. | PenSi|
|00000ca0| 7a 65 4d 65 6e 75 20 3a | 0d 20 20 20 20 20 20 20 |zeMenu :|. |
|00000cb0| 20 62 65 67 69 6e 0d 20 | 20 20 20 20 20 20 20 20 | begin. | |
|00000cc0| 20 43 68 65 63 6b 49 74 | 65 6d 28 6d 79 4d 65 6e | CheckIt|em(myMen|
|00000cd0| 75 73 5b 50 65 6e 53 69 | 7a 65 4d 65 6e 75 5d 2c |us[PenSi|zeMenu],|
|00000ce0| 43 75 72 72 65 6e 74 53 | 69 7a 65 2c 66 61 6c 73 |CurrentS|ize,fals|
|00000cf0| 65 29 3b 0d 20 20 20 20 | 20 20 20 20 20 20 43 75 |e);. | Cu|
|00000d00| 72 72 65 6e 74 53 69 7a | 65 3a 3d 20 69 74 65 6d |rrentSiz|e:= item|
|00000d10| 4e 75 6d 3b 0d 20 20 20 | 20 20 20 20 20 20 20 43 |Num;. | C|
|00000d20| 68 65 63 6b 49 74 65 6d | 28 6d 79 4d 65 6e 75 73 |heckItem|(myMenus|
|00000d30| 5b 50 65 6e 53 69 7a 65 | 4d 65 6e 75 5d 2c 43 75 |[PenSize|Menu],Cu|
|00000d40| 72 72 65 6e 74 53 69 7a | 65 2c 74 72 75 65 29 3b |rrentSiz|e,true);|
|00000d50| 0d 20 20 20 20 20 20 20 | 20 20 20 53 65 74 50 6f |. | SetPo|
|00000d60| 72 74 28 74 68 65 57 69 | 6e 64 6f 77 29 3b 0d 20 |rt(theWi|ndow);. |
|00000d70| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 43 75 | | case Cu|
|00000d80| 72 72 65 6e 74 53 69 7a | 65 20 6f 66 0d 20 20 20 |rrentSiz|e of. |
|00000d90| 20 20 20 20 20 20 20 20 | 20 31 20 3a 20 50 65 6e | | 1 : Pen|
|00000da0| 53 69 7a 65 28 31 2c 31 | 29 3b 0d 20 20 20 20 20 |Size(1,1|);. |
|00000db0| 20 20 20 20 20 20 20 32 | 20 3a 20 50 65 6e 53 69 | 2| : PenSi|
|00000dc0| 7a 65 28 32 2c 32 29 3b | 0d 20 20 20 20 20 20 20 |ze(2,2);|. |
|00000dd0| 20 20 20 20 20 33 20 3a | 20 50 65 6e 53 69 7a 65 | 3 :| PenSize|
|00000de0| 28 32 2c 34 29 3b 0d 20 | 20 20 20 20 20 20 20 20 |(2,4);. | |
|00000df0| 20 20 20 34 20 3a 20 50 | 65 6e 53 69 7a 65 28 34 | 4 : P|enSize(4|
|00000e00| 2c 32 29 3b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |,2);. | |
|00000e10| 20 35 20 3a 20 50 65 6e | 53 69 7a 65 28 35 2c 35 | 5 : Pen|Size(5,5|
|00000e20| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 36 |);. | 6|
|00000e30| 20 3a 20 50 65 6e 53 69 | 7a 65 28 31 30 2c 32 29 | : PenSi|ze(10,2)|
|00000e40| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 37 20 |;. | 7 |
|00000e50| 3a 20 50 65 6e 53 69 7a | 65 28 32 2c 31 30 29 3b |: PenSiz|e(2,10);|
|00000e60| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 38 20 3a |. | 8 :|
|00000e70| 20 50 65 6e 53 69 7a 65 | 28 31 30 2c 31 30 29 3b | PenSize|(10,10);|
|00000e80| 0d 20 20 20 20 20 20 20 | 20 20 20 65 6e 64 0d 20 |. | end. |
|00000e90| 20 20 20 20 20 20 20 65 | 6e 64 3b 0d 20 20 20 20 | e|nd;. |
|00000ea0| 65 6e 64 3b 20 7b 63 61 | 73 65 7d 0d 20 20 20 20 |end; {ca|se}. |
|00000eb0| 48 69 6c 69 74 65 4d 65 | 6e 75 28 30 29 3b 0d 20 |HiliteMe|nu(0);. |
|00000ec0| 20 65 6e 64 3b 20 7b 62 | 69 67 20 69 66 7d 0d 45 | end; {b|ig if}.E|
|00000ed0| 6e 64 3b 0d 0d 7b 23 23 | 23 23 23 23 23 23 23 23 |nd;..{##|########|
|00000ee0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000ef0| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f00| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00000f20| 23 23 23 23 23 7d 0d 0d | 50 72 6f 63 65 64 75 72 |#####}..|Procedur|
|00000f30| 65 20 44 65 61 6c 57 69 | 74 68 4d 6f 75 73 65 44 |e DealWi|thMouseD|
|00000f40| 6f 77 6e 73 28 74 68 65 | 45 76 65 6e 74 3a 20 45 |owns(the|Event: E|
|00000f50| 76 65 6e 74 52 65 63 6f | 72 64 29 3b 0d 56 61 72 |ventReco|rd);.Var|
|00000f60| 0d 20 20 77 68 69 63 68 | 57 69 6e 64 6f 77 20 20 |. which|Window |
|00000f70| 20 3a 20 57 69 6e 64 6f | 77 50 74 72 3b 0d 20 20 | : Windo|wPtr;. |
|00000f80| 6d 6f 75 73 65 4c 6f 63 | 20 20 20 20 20 20 3a 20 |mouseLoc| : |
|00000f90| 50 6f 69 6e 74 3b 0d 20 | 20 77 69 6e 64 6f 77 4c |Point;. | windowL|
|00000fa0| 6f 63 20 20 20 20 20 3a | 20 49 6e 74 65 67 65 72 |oc :| Integer|
|00000fb0| 3b 0d 20 20 70 6f 73 69 | 74 69 6f 6e 20 20 20 20 |;. posi|tion |
|00000fc0| 20 20 3a 20 4c 6f 6e 67 | 49 6e 74 3b 0d 20 20 64 | : Long|Int;. d|
|00000fd0| 75 6d 6d 79 20 20 20 20 | 20 20 20 20 20 3a 20 49 |ummy | : I|
|00000fe0| 6e 74 65 67 65 72 3b 0d | 42 65 67 69 6e 0d 20 20 |nteger;.|Begin. |
|00000ff0| 6d 6f 75 73 65 4c 6f 63 | 3a 3d 20 74 68 65 45 76 |mouseLoc|:= theEv|
|00001000| 65 6e 74 2e 77 68 65 72 | 65 3b 0d 20 20 77 69 6e |ent.wher|e;. win|
|00001010| 64 6f 77 4c 6f 63 3a 3d | 20 46 69 6e 64 57 69 6e |dowLoc:=| FindWin|
|00001020| 64 6f 77 28 6d 6f 75 73 | 65 4c 6f 63 2c 77 68 69 |dow(mous|eLoc,whi|
|00001030| 63 68 57 69 6e 64 6f 77 | 29 3b 0d 20 20 63 61 73 |chWindow|);. cas|
|00001040| 65 20 77 69 6e 64 6f 77 | 4c 6f 63 20 6f 66 0d 20 |e window|Loc of. |
|00001050| 20 20 20 69 6e 4d 65 6e | 75 42 61 72 20 20 20 3a | inMen|uBar :|
|00001060| 20 50 72 6f 63 65 73 73 | 4d 65 6e 75 28 4d 65 6e | Process|Menu(Men|
|00001070| 75 53 65 6c 65 63 74 28 | 6d 6f 75 73 65 4c 6f 63 |uSelect(|mouseLoc|
|00001080| 29 29 3b 0d 20 20 20 20 | 69 6e 53 79 73 57 69 6e |));. |inSysWin|
|00001090| 64 6f 77 20 3a 20 53 79 | 73 74 65 6d 43 6c 69 63 |dow : Sy|stemClic|
|000010a0| 6b 28 74 68 65 45 76 65 | 6e 74 2c 77 68 69 63 68 |k(theEve|nt,which|
|000010b0| 57 69 6e 64 6f 77 29 3b | 0d 20 20 20 20 69 6e 44 |Window);|. inD|
|000010c0| 72 61 67 20 20 20 20 20 | 20 3a 20 44 72 61 67 57 |rag | : DragW|
|000010d0| 69 6e 64 6f 77 28 77 68 | 69 63 68 57 69 6e 64 6f |indow(wh|ichWindo|
|000010e0| 77 2c 6d 6f 75 73 65 4c | 6f 63 2c 73 63 72 65 65 |w,mouseL|oc,scree|
|000010f0| 6e 42 69 74 73 2e 62 6f | 75 6e 64 73 29 3b 0d 20 |nBits.bo|unds);. |
|00001100| 20 20 20 69 6e 5a 6f 6f | 6d 49 6e 2c 69 6e 5a 6f | inZoo|mIn,inZo|
|00001110| 6f 6d 4f 75 74 20 3a 0d | 20 20 20 20 20 20 62 65 |omOut :.| be|
|00001120| 67 69 6e 0d 20 20 20 20 | 20 20 20 20 69 66 20 54 |gin. | if T|
|00001130| 72 61 63 6b 42 6f 78 28 | 77 68 69 63 68 57 69 6e |rackBox(|whichWin|
|00001140| 64 6f 77 2c 6d 6f 75 73 | 65 4c 6f 63 2c 77 69 6e |dow,mous|eLoc,win|
|00001150| 64 6f 77 4c 6f 63 29 20 | 74 68 65 6e 20 62 65 67 |dowLoc) |then beg|
|00001160| 69 6e 0d 20 20 20 20 20 | 20 20 20 20 20 53 65 74 |in. | Set|
|00001170| 50 6f 72 74 28 77 68 69 | 63 68 57 69 6e 64 6f 77 |Port(whi|chWindow|
|00001180| 29 3b 0d 20 20 20 20 20 | 20 20 20 20 20 43 6c 69 |);. | Cli|
|00001190| 70 52 65 63 74 28 77 68 | 69 63 68 57 69 6e 64 6f |pRect(wh|ichWindo|
|000011a0| 77 5e 2e 70 6f 72 74 52 | 65 63 74 29 3b 0d 20 20 |w^.portR|ect);. |
|000011b0| 20 20 20 20 20 20 20 20 | 45 72 61 73 65 52 65 63 | |EraseRec|
|000011c0| 74 28 77 68 69 63 68 57 | 69 6e 64 6f 77 5e 2e 70 |t(whichW|indow^.p|
|000011d0| 6f 72 74 52 65 63 74 29 | 3b 0d 20 20 20 20 20 20 |ortRect)|;. |
|000011e0| 20 20 20 20 5a 6f 6f 6d | 57 69 6e 64 6f 77 28 77 | Zoom|Window(w|
|000011f0| 68 69 63 68 57 69 6e 64 | 6f 77 2c 77 69 6e 64 6f |hichWind|ow,windo|
|00001200| 77 4c 6f 63 2c 74 72 75 | 65 29 3b 0d 20 20 20 20 |wLoc,tru|e);. |
|00001210| 20 20 20 20 20 20 49 6e | 76 61 6c 52 65 63 74 28 | In|valRect(|
|00001220| 77 68 69 63 68 57 69 6e | 64 6f 77 5e 2e 70 6f 72 |whichWin|dow^.por|
|00001230| 74 52 65 63 74 29 3b 0d | 20 20 20 20 20 20 20 20 |tRect);.| |
|00001240| 65 6e 64 3b 0d 20 20 20 | 20 20 20 65 6e 64 3b 0d |end;. | end;.|
|00001250| 20 20 20 20 69 6e 47 72 | 6f 77 20 3a 0d 20 20 20 | inGr|ow :. |
|00001260| 20 20 20 62 65 67 69 6e | 0d 20 20 20 20 20 20 20 | begin|. |
|00001270| 20 70 6f 73 69 74 69 6f | 6e 3a 3d 20 47 72 6f 77 | positio|n:= Grow|
|00001280| 57 69 6e 64 6f 77 28 77 | 68 69 63 68 57 69 6e 64 |Window(w|hichWind|
|00001290| 6f 77 2c 6d 6f 75 73 65 | 4c 6f 63 2c 47 72 6f 77 |ow,mouse|Loc,Grow|
|000012a0| 41 72 65 61 29 3b 0d 20 | 20 20 20 20 20 20 20 69 |Area);. | i|
|000012b0| 66 20 70 6f 73 69 74 69 | 6f 6e 20 3c 3e 20 30 20 |f positi|on <> 0 |
|000012c0| 74 68 65 6e 20 62 65 67 | 69 6e 0d 20 20 20 20 20 |then beg|in. |
|000012d0| 20 20 20 20 20 53 69 7a | 65 57 69 6e 64 6f 77 28 | Siz|eWindow(|
|000012e0| 77 68 69 63 68 57 69 6e | 64 6f 77 2c 6c 6f 77 6f |whichWin|dow,lowo|
|000012f0| 72 64 28 70 6f 73 69 74 | 69 6f 6e 29 2c 68 69 77 |rd(posit|ion),hiw|
|00001300| 6f 72 64 28 70 6f 73 69 | 74 69 6f 6e 29 2c 66 61 |ord(posi|tion),fa|
|00001310| 6c 73 65 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |lse);. | |
|00001320| 53 65 74 50 6f 72 74 28 | 77 68 69 63 68 57 69 6e |SetPort(|whichWin|
|00001330| 64 6f 77 29 3b 0d 20 20 | 20 20 20 20 20 20 20 20 |dow);. | |
|00001340| 49 6e 76 61 6c 52 65 63 | 74 28 77 68 69 63 68 57 |InvalRec|t(whichW|
|00001350| 69 6e 64 6f 77 5e 2e 70 | 6f 72 74 52 65 63 74 29 |indow^.p|ortRect)|
|00001360| 3b 0d 20 20 20 20 20 20 | 20 20 65 6e 64 3b 0d 20 |;. | end;. |
|00001370| 20 20 20 20 20 65 6e 64 | 3b 0d 20 20 20 20 69 6e | end|;. in|
|00001380| 47 6f 41 77 61 79 20 3a | 0d 20 20 20 20 20 20 62 |GoAway :|. b|
|00001390| 65 67 69 6e 0d 20 20 20 | 20 20 20 20 20 69 66 20 |egin. | if |
|000013a0| 54 72 61 63 6b 47 6f 41 | 77 61 79 28 77 68 69 63 |TrackGoA|way(whic|
|000013b0| 68 57 69 6e 64 6f 77 2c | 6d 6f 75 73 65 4c 6f 63 |hWindow,|mouseLoc|
|000013c0| 29 20 74 68 65 6e 20 45 | 78 69 74 54 6f 53 68 65 |) then E|xitToShe|
|000013d0| 6c 6c 3b 0d 20 20 20 20 | 20 20 65 6e 64 3b 0d 20 |ll;. | end;. |
|000013e0| 20 20 20 69 6e 43 6f 6e | 74 65 6e 74 20 3a 0d 20 | inCon|tent :. |
|000013f0| 20 20 20 20 20 62 65 67 | 69 6e 0d 20 20 20 20 20 | beg|in. |
|00001400| 20 20 20 69 66 20 77 68 | 69 63 68 57 69 6e 64 6f | if wh|ichWindo|
|00001410| 77 20 3c 3e 20 46 72 6f | 6e 74 57 69 6e 64 6f 77 |w <> Fro|ntWindow|
|00001420| 20 74 68 65 6e 0d 20 20 | 20 20 20 20 20 20 20 20 | then. | |
|00001430| 53 65 6c 65 63 74 57 69 | 6e 64 6f 77 28 77 68 69 |SelectWi|ndow(whi|
|00001440| 63 68 57 69 6e 64 6f 77 | 29 0d 20 20 20 20 20 20 |chWindow|). |
|00001450| 20 20 65 6c 73 65 20 62 | 65 67 69 6e 0d 20 20 20 | else b|egin. |
|00001460| 20 20 20 20 20 20 20 53 | 65 74 50 6f 72 74 28 77 | S|etPort(w|
|00001470| 68 69 63 68 57 69 6e 64 | 6f 77 29 3b 0d 20 20 20 |hichWind|ow);. |
|00001480| 20 20 20 20 20 20 20 47 | 6c 6f 62 61 6c 54 6f 4c | G|lobalToL|
|00001490| 6f 63 61 6c 28 6d 6f 75 | 73 65 4c 6f 63 29 3b 0d |ocal(mou|seLoc);.|
|000014a0| 20 20 20 20 20 20 20 20 | 20 20 44 6f 50 61 69 6e | | DoPain|
|000014b0| 74 54 6f 6f 6c 73 28 43 | 75 72 72 65 6e 74 54 6f |tTools(C|urrentTo|
|000014c0| 6f 6c 2c 6d 6f 75 73 65 | 4c 6f 63 2c 74 68 65 45 |ol,mouse|Loc,theE|
|000014d0| 76 65 6e 74 2e 6d 6f 64 | 69 66 69 65 72 73 29 3b |vent.mod|ifiers);|
|000014e0| 0d 20 20 20 20 20 20 20 | 20 20 20 69 66 20 50 54 |. | if PT|
|000014f0| 45 72 72 6f 72 20 3d 20 | 54 55 6e 49 6d 70 20 74 |Error = |TUnImp t|
|00001500| 68 65 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |hen. | |
|00001510| 64 75 6d 6d 79 3a 3d 20 | 41 6c 65 72 74 28 31 32 |dummy:= |Alert(12|
|00001520| 38 2c 6e 69 6c 29 0d 20 | 20 20 20 20 20 20 20 20 |8,nil). | |
|00001530| 20 65 6c 73 65 20 69 66 | 20 50 54 45 72 72 6f 72 | else if| PTError|
|00001540| 20 3c 3e 20 6e 6f 45 72 | 72 20 74 68 65 6e 20 73 | <> noEr|r then s|
|00001550| 79 73 62 65 65 70 28 31 | 29 3b 0d 20 20 20 20 20 |ysbeep(1|);. |
|00001560| 20 20 20 65 6e 64 3b 0d | 20 20 20 20 20 20 65 6e | end;.| en|
|00001570| 64 3b 0d 20 20 65 6e 64 | 3b 0d 45 6e 64 3b 0d 0d |d;. end|;.End;..|
|00001580| 50 72 6f 63 65 64 75 72 | 65 20 44 65 61 6c 57 69 |Procedur|e DealWi|
|00001590| 74 68 4b 65 79 44 6f 77 | 6e 73 28 74 68 65 45 76 |thKeyDow|ns(theEv|
|000015a0| 65 6e 74 3a 20 45 76 65 | 6e 74 52 65 63 6f 72 64 |ent: Eve|ntRecord|
|000015b0| 29 3b 0d 56 61 72 0d 20 | 20 43 68 61 72 43 6f 64 |);.Var. | CharCod|
|000015c0| 65 20 20 3a 20 63 68 61 | 72 3b 0d 42 65 67 69 6e |e : cha|r;.Begin|
|000015d0| 0d 20 20 43 68 61 72 43 | 6f 64 65 20 3a 3d 20 43 |. CharC|ode := C|
|000015e0| 48 52 28 42 69 74 41 6e | 64 28 74 68 65 45 76 65 |HR(BitAn|d(theEve|
|000015f0| 6e 74 2e 6d 65 73 73 61 | 67 65 2c 63 68 61 72 43 |nt.messa|ge,charC|
|00001600| 6f 64 65 4d 61 73 6b 29 | 29 3b 0d 20 20 69 66 20 |odeMask)|);. if |
|00001610| 42 69 74 41 6e 64 28 74 | 68 65 45 76 65 6e 74 2e |BitAnd(t|heEvent.|
|00001620| 6d 6f 64 69 66 69 65 72 | 73 2c 43 6d 64 4b 65 79 |modifier|s,CmdKey|
|00001630| 29 20 3d 20 43 6d 64 4b | 65 79 0d 20 20 20 20 74 |) = CmdK|ey. t|
|00001640| 68 65 6e 20 50 72 6f 63 | 65 73 73 4d 65 6e 75 28 |hen Proc|essMenu(|
|00001650| 4d 65 6e 75 4b 65 79 28 | 43 68 61 72 43 6f 64 65 |MenuKey(|CharCode|
|00001660| 29 29 3b 0d 45 6e 64 3b | 0d 0d 50 72 6f 63 65 64 |));.End;|..Proced|
|00001670| 75 72 65 20 44 65 61 6c | 57 69 74 68 41 63 74 69 |ure Deal|WithActi|
|00001680| 76 61 74 65 73 28 74 68 | 65 45 76 65 6e 74 3a 20 |vates(th|eEvent: |
|00001690| 45 76 65 6e 74 52 65 63 | 6f 72 64 29 3b 0d 56 61 |EventRec|ord);.Va|
|000016a0| 72 0d 20 20 54 61 72 67 | 65 74 57 69 6e 64 6f 77 |r. Targ|etWindow|
|000016b0| 09 3a 20 57 69 6e 64 6f | 77 50 74 72 3b 0d 42 65 |.: Windo|wPtr;.Be|
|000016c0| 67 69 6e 0d 20 20 54 61 | 72 67 65 74 57 69 6e 64 |gin. Ta|rgetWind|
|000016d0| 6f 77 20 3a 3d 20 57 69 | 6e 64 6f 77 50 74 72 28 |ow := Wi|ndowPtr(|
|000016e0| 74 68 65 45 76 65 6e 74 | 2e 6d 65 73 73 61 67 65 |theEvent|.message|
|000016f0| 29 3b 0d 20 20 69 66 20 | 4f 64 64 28 74 68 65 45 |);. if |Odd(theE|
|00001700| 76 65 6e 74 2e 6d 6f 64 | 69 66 69 65 72 73 29 0d |vent.mod|ifiers).|
|00001710| 20 20 20 20 74 68 65 6e | 20 53 65 74 50 6f 72 74 | then| SetPort|
|00001720| 28 54 61 72 67 65 74 57 | 69 6e 64 6f 77 29 3b 0d |(TargetW|indow);.|
|00001730| 45 6e 64 3b 0d 0d 50 72 | 6f 63 65 64 75 72 65 20 |End;..Pr|ocedure |
|00001740| 44 65 61 6c 57 69 74 68 | 55 70 64 61 74 65 73 28 |DealWith|Updates(|
|00001750| 74 68 65 45 76 65 6e 74 | 3a 20 45 76 65 6e 74 52 |theEvent|: EventR|
|00001760| 65 63 6f 72 64 29 3b 0d | 56 61 72 0d 20 20 55 70 |ecord);.|Var. Up|
|00001770| 44 61 74 65 57 69 6e 64 | 6f 77 20 20 3a 20 57 69 |DateWind|ow : Wi|
|00001780| 6e 64 6f 77 50 74 72 3b | 0d 20 20 74 65 6d 70 50 |ndowPtr;|. tempP|
|00001790| 6f 72 74 20 20 20 20 20 | 20 3a 20 57 69 6e 64 6f |ort | : Windo|
|000017a0| 77 50 74 72 3b 0d 42 65 | 67 69 6e 0d 20 20 55 70 |wPtr;.Be|gin. Up|
|000017b0| 44 61 74 65 57 69 6e 64 | 6f 77 20 3a 3d 20 57 69 |DateWind|ow := Wi|
|000017c0| 6e 64 6f 77 50 74 72 28 | 74 68 65 45 76 65 6e 74 |ndowPtr(|theEvent|
|000017d0| 2e 6d 65 73 73 61 67 65 | 29 3b 0d 20 20 47 65 74 |.message|);. Get|
|000017e0| 50 6f 72 74 28 74 65 6d | 70 50 6f 72 74 29 3b 0d |Port(tem|pPort);.|
|000017f0| 20 20 53 65 74 50 6f 72 | 74 28 55 70 44 61 74 65 | SetPor|t(UpDate|
|00001800| 57 69 6e 64 6f 77 29 3b | 20 0d 20 20 42 65 67 69 |Window);| . Begi|
|00001810| 6e 55 70 44 61 74 65 28 | 55 70 44 61 74 65 57 69 |nUpDate(|UpDateWi|
|00001820| 6e 64 6f 77 29 3b 0d 20 | 20 20 20 43 6c 69 70 52 |ndow);. | ClipR|
|00001830| 65 63 74 28 55 70 44 61 | 74 65 57 69 6e 64 6f 77 |ect(UpDa|teWindow|
|00001840| 5e 2e 70 6f 72 74 52 65 | 63 74 29 3b 0d 20 20 20 |^.portRe|ct);. |
|00001850| 20 45 72 61 73 65 52 65 | 63 74 28 55 70 44 61 74 | EraseRe|ct(UpDat|
|00001860| 65 57 69 6e 64 6f 77 5e | 2e 70 6f 72 74 52 65 63 |eWindow^|.portRec|
|00001870| 74 29 3b 0d 20 20 20 20 | 50 65 6e 53 69 7a 65 28 |t);. |PenSize(|
|00001880| 35 2c 35 29 3b 0d 20 20 | 20 20 46 72 61 6d 65 4f |5,5);. | FrameO|
|00001890| 76 61 6c 28 55 70 44 61 | 74 65 57 69 6e 64 6f 77 |val(UpDa|teWindow|
|000018a0| 5e 2e 70 6f 72 74 52 65 | 63 74 29 3b 0d 20 20 20 |^.portRe|ct);. |
|000018b0| 20 50 65 6e 53 69 7a 65 | 28 31 2c 31 29 3b 0d 20 | PenSize|(1,1);. |
|000018c0| 20 45 6e 64 55 70 44 61 | 74 65 28 55 70 44 61 74 | EndUpDa|te(UpDat|
|000018d0| 65 57 69 6e 64 6f 77 29 | 3b 0d 20 20 53 65 74 50 |eWindow)|;. SetP|
|000018e0| 6f 72 74 28 74 65 6d 70 | 50 6f 72 74 29 3b 0d 45 |ort(temp|Port);.E|
|000018f0| 6e 64 3b 0d 0d 50 72 6f | 63 65 64 75 72 65 20 41 |nd;..Pro|cedure A|
|00001900| 64 6a 75 73 74 43 75 72 | 73 6f 72 3b 0d 56 61 72 |djustCur|sor;.Var|
|00001910| 0d 20 20 77 68 65 72 65 | 20 3a 20 50 6f 69 6e 74 |. where| : Point|
|00001920| 3b 0d 42 65 67 69 6e 0d | 20 20 47 65 74 4d 6f 75 |;.Begin.| GetMou|
|00001930| 73 65 28 77 68 65 72 65 | 29 3b 0d 20 20 69 66 20 |se(where|);. if |
|00001940| 28 74 68 65 57 69 6e 64 | 6f 77 20 3d 20 46 72 6f |(theWind|ow = Fro|
|00001950| 6e 74 57 69 6e 64 6f 77 | 29 20 41 4e 44 20 50 74 |ntWindow|) AND Pt|
|00001960| 49 6e 52 65 63 74 28 77 | 68 65 72 65 2c 74 68 65 |InRect(w|here,the|
|00001970| 57 69 6e 64 6f 77 5e 2e | 70 6f 72 74 52 65 63 74 |Window^.|portRect|
|00001980| 29 20 74 68 65 6e 0d 20 | 20 20 20 63 61 73 65 20 |) then. | case |
|00001990| 43 75 72 72 65 6e 74 54 | 6f 6f 6c 20 6f 66 0d 20 |CurrentT|ool of. |
|000019a0| 20 20 20 20 20 54 53 70 | 72 61 79 20 20 20 20 3a | TSp|ray :|
|000019b0| 20 53 65 74 43 75 72 73 | 6f 72 28 53 70 72 61 79 | SetCurs|or(Spray|
|000019c0| 43 75 72 73 5e 5e 29 3b | 0d 20 20 20 20 20 20 54 |Curs^^);|. T|
|000019d0| 4c 69 6e 65 20 20 20 20 | 20 3a 20 53 65 74 43 75 |Line | : SetCu|
|000019e0| 72 73 6f 72 28 43 72 6f | 73 73 43 75 72 73 5e 5e |rsor(Cro|ssCurs^^|
|000019f0| 29 3b 0d 20 20 20 20 20 | 20 54 45 72 61 73 65 72 |);. | TEraser|
|00001a00| 20 20 20 3a 20 53 65 74 | 43 75 72 73 6f 72 28 45 | : Set|Cursor(E|
|00001a10| 72 61 73 65 43 75 72 73 | 5e 5e 29 3b 0d 20 20 20 |raseCurs|^^);. |
|00001a20| 20 65 6e 64 0d 20 20 65 | 6c 73 65 0d 20 20 20 20 | end. e|lse. |
|00001a30| 49 6e 69 74 43 75 72 73 | 6f 72 3b 0d 45 6e 64 3b |InitCurs|or;.End;|
|00001a40| 0d 0d 50 72 6f 63 65 64 | 75 72 65 20 4d 61 69 6e |..Proced|ure Main|
|00001a50| 45 76 65 6e 74 4c 6f 6f | 70 3b 0d 56 61 72 0d 20 |EventLoo|p;.Var. |
|00001a60| 20 45 76 65 6e 74 09 09 | 3a 20 45 76 65 6e 74 52 | Event..|: EventR|
|00001a70| 65 63 6f 72 64 3b 0d 42 | 65 67 69 6e 0d 20 20 72 |ecord;.B|egin. r|
|00001a80| 65 70 65 61 74 0d 20 20 | 20 20 41 64 6a 75 73 74 |epeat. | Adjust|
|00001a90| 43 75 72 73 6f 72 3b 0d | 20 20 20 20 53 79 73 74 |Cursor;.| Syst|
|00001aa0| 65 6d 54 61 73 6b 3b 0d | 20 20 20 20 69 66 20 47 |emTask;.| if G|
|00001ab0| 65 74 4e 65 78 74 45 76 | 65 6e 74 28 65 76 65 72 |etNextEv|ent(ever|
|00001ac0| 79 45 76 65 6e 74 2c 20 | 45 76 65 6e 74 29 20 74 |yEvent, |Event) t|
|00001ad0| 68 65 6e 0d 20 20 20 20 | 20 20 63 61 73 65 20 45 |hen. | case E|
|00001ae0| 76 65 6e 74 2e 77 68 61 | 74 20 6f 66 0d 20 20 20 |vent.wha|t of. |
|00001af0| 20 20 20 20 20 6d 6f 75 | 73 65 44 6f 77 6e 20 20 | mou|seDown |
|00001b00| 20 3a 20 44 65 61 6c 57 | 69 74 68 4d 6f 75 73 65 | : DealW|ithMouse|
|00001b10| 44 6f 77 6e 73 28 45 76 | 65 6e 74 29 3b 0d 20 20 |Downs(Ev|ent);. |
|00001b20| 20 20 20 20 20 20 41 75 | 74 6f 4b 65 79 20 20 20 | Au|toKey |
|00001b30| 20 20 3a 20 44 65 61 6c | 57 69 74 68 4b 65 79 44 | : Deal|WithKeyD|
|00001b40| 6f 77 6e 73 28 45 76 65 | 6e 74 29 3b 0d 20 20 20 |owns(Eve|nt);. |
|00001b50| 20 20 20 20 20 4b 65 79 | 44 6f 77 6e 20 20 20 20 | Key|Down |
|00001b60| 20 3a 20 44 65 61 6c 57 | 69 74 68 4b 65 79 44 6f | : DealW|ithKeyDo|
|00001b70| 77 6e 73 28 45 76 65 6e | 74 29 3b 0d 20 20 20 20 |wns(Even|t);. |
|00001b80| 20 20 20 20 41 63 74 69 | 76 61 74 65 45 76 74 20 | Acti|vateEvt |
|00001b90| 3a 20 44 65 61 6c 57 69 | 74 68 41 63 74 69 76 61 |: DealWi|thActiva|
|00001ba0| 74 65 73 28 45 76 65 6e | 74 29 3b 0d 20 20 20 20 |tes(Even|t);. |
|00001bb0| 20 20 20 20 55 70 64 61 | 74 65 45 76 74 20 20 20 | Upda|teEvt |
|00001bc0| 3a 20 44 65 61 6c 57 69 | 74 68 55 70 64 61 74 65 |: DealWi|thUpdate|
|00001bd0| 73 28 45 76 65 6e 74 29 | 3b 0d 20 20 20 20 20 20 |s(Event)|;. |
|00001be0| 65 6e 64 3b 20 7b 63 61 | 73 65 7d 0d 20 20 75 6e |end; {ca|se}. un|
|00001bf0| 74 69 6c 20 46 41 4c 53 | 45 3b 0d 45 6e 64 3b 0d |til FALS|E;.End;.|
|00001c00| 0d 7b 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |.{######|########|
|00001c10| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001c20| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001c30| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001c40| 23 23 23 23 23 23 23 23 | 23 23 23 23 23 23 23 23 |########|########|
|00001c50| 23 7d 0d 0d 50 72 6f 63 | 65 64 75 72 65 20 53 65 |#}..Proc|edure Se|
|00001c60| 74 75 70 4d 61 63 69 6e | 74 6f 73 68 3b 0d 56 61 |tupMacin|tosh;.Va|
|00001c70| 72 0d 20 20 74 68 65 57 | 61 74 63 68 20 20 3a 20 |r. theW|atch : |
|00001c80| 43 75 72 73 48 61 6e 64 | 6c 65 3b 0d 42 65 67 69 |CursHand|le;.Begi|
|00001c90| 6e 0d 20 20 4d 61 78 41 | 70 70 6c 5a 6f 6e 65 3b |n. MaxA|pplZone;|
|00001ca0| 0d 20 20 4d 6f 72 65 4d | 61 73 74 65 72 73 3b 0d |. MoreM|asters;.|
|00001cb0| 20 20 4d 6f 72 65 4d 61 | 73 74 65 72 73 3b 0d 20 | MoreMa|sters;. |
|00001cc0| 20 4d 6f 72 65 4d 61 73 | 74 65 72 73 3b 0d 0d 20 | MoreMas|ters;.. |
|00001cd0| 20 46 6c 75 73 68 45 76 | 65 6e 74 73 28 65 76 65 | FlushEv|ents(eve|
|00001ce0| 72 79 45 76 65 6e 74 2c | 30 29 3b 0d 0d 20 20 49 |ryEvent,|0);.. I|
|00001cf0| 6e 69 74 47 72 61 66 28 | 40 74 68 65 50 6f 72 74 |nitGraf(|@thePort|
|00001d00| 29 3b 0d 20 20 49 6e 69 | 74 46 6f 6e 74 73 3b 0d |);. Ini|tFonts;.|
|00001d10| 20 20 49 6e 69 74 57 69 | 6e 64 6f 77 73 3b 0d 20 | InitWi|ndows;. |
|00001d20| 20 49 6e 69 74 4d 65 6e | 75 73 3b 0d 20 20 54 45 | InitMen|us;. TE|
|00001d30| 49 6e 69 74 3b 0d 20 20 | 49 6e 69 74 44 69 61 6c |Init;. |InitDial|
|00001d40| 6f 67 73 28 6e 69 6c 29 | 3b 0d 20 20 0d 20 20 55 |ogs(nil)|;. . U|
|00001d50| 6e 6c 6f 61 64 53 65 67 | 28 40 5f 44 61 74 61 49 |nloadSeg|(@_DataI|
|00001d60| 6e 69 74 29 3b 0d 0d 20 | 20 74 68 65 57 61 74 63 |nit);.. | theWatc|
|00001d70| 68 3a 3d 20 47 65 74 43 | 75 72 73 6f 72 28 77 61 |h:= GetC|ursor(wa|
|00001d80| 74 63 68 43 75 72 73 6f | 72 29 3b 0d 20 20 53 65 |tchCurso|r);. Se|
|00001d90| 74 43 75 72 73 6f 72 28 | 74 68 65 57 61 74 63 68 |tCursor(|theWatch|
|00001da0| 5e 5e 29 3b 0d 45 6e 64 | 3b 0d 0d 50 72 6f 63 65 |^^);.End|;..Proce|
|00001db0| 64 75 72 65 20 53 65 74 | 75 70 4d 65 6e 75 73 3b |dure Set|upMenus;|
|00001dc0| 0d 56 61 72 0d 20 20 69 | 6e 64 65 78 09 3a 20 49 |.Var. i|ndex.: I|
|00001dd0| 6e 74 65 67 65 72 3b 0d | 42 65 67 69 6e 0d 20 20 |nteger;.|Begin. |
|00001de0| 66 6f 72 20 69 6e 64 65 | 78 3a 3d 20 41 70 70 6c |for inde|x:= Appl|
|00001df0| 65 4d 65 6e 75 20 74 6f | 20 50 65 6e 53 69 7a 65 |eMenu to| PenSize|
|00001e00| 4d 65 6e 75 20 64 6f 20 | 62 65 67 69 6e 0d 20 20 |Menu do |begin. |
|00001e10| 20 20 6d 79 4d 65 6e 75 | 73 5b 69 6e 64 65 78 5d | myMenu|s[index]|
|00001e20| 20 3a 3d 20 47 65 74 4d | 65 6e 75 28 69 6e 64 65 | := GetM|enu(inde|
|00001e30| 78 29 3b 0d 20 20 20 20 | 49 6e 73 65 72 74 4d 65 |x);. |InsertMe|
|00001e40| 6e 75 28 6d 79 4d 65 6e | 75 73 5b 69 6e 64 65 78 |nu(myMen|us[index|
|00001e50| 5d 2c 30 29 3b 0d 20 20 | 65 6e 64 3b 0d 20 20 41 |],0);. |end;. A|
|00001e60| 64 64 52 65 73 4d 65 6e | 75 28 6d 79 4d 65 6e 75 |ddResMen|u(myMenu|
|00001e70| 73 5b 41 70 70 6c 65 4d | 65 6e 75 5d 2c 27 44 52 |s[AppleM|enu],'DR|
|00001e80| 56 52 27 29 3b 0d 20 20 | 44 72 61 77 4d 65 6e 75 |VR');. |DrawMenu|
|00001e90| 42 61 72 3b 0d 45 6e 64 | 3b 0d 0d 50 72 6f 63 65 |Bar;.End|;..Proce|
|00001ea0| 64 75 72 65 20 53 65 74 | 75 70 53 74 75 66 66 3b |dure Set|upStuff;|
|00001eb0| 0d 56 61 72 0d 20 20 74 | 65 6d 70 52 65 63 74 20 |.Var. t|empRect |
|00001ec0| 20 3a 20 52 65 63 74 3b | 0d 20 20 76 65 72 73 69 | : Rect;|. versi|
|00001ed0| 6f 6e 20 20 20 3a 20 49 | 6e 74 65 67 65 72 3b 0d |on : I|nteger;.|
|00001ee0| 42 65 67 69 6e 0d 20 20 | 76 65 72 73 69 6f 6e 3a |Begin. |version:|
|00001ef0| 3d 20 49 6e 69 74 50 61 | 69 6e 74 54 6f 6f 6c 73 |= InitPa|intTools|
|00001f00| 3b 0d 0d 20 20 77 69 74 | 68 20 73 63 72 65 65 6e |;.. wit|h screen|
|00001f10| 42 69 74 73 2e 62 6f 75 | 6e 64 73 20 64 6f 20 62 |Bits.bou|nds do b|
|00001f20| 65 67 69 6e 0d 20 20 20 | 20 53 65 74 52 65 63 74 |egin. | SetRect|
|00001f30| 28 47 72 6f 77 41 72 65 | 61 2c 32 30 30 2c 32 30 |(GrowAre|a,200,20|
|00001f40| 30 2c 72 69 67 68 74 2c | 62 6f 74 74 6f 6d 29 3b |0,right,|bottom);|
|00001f50| 0d 20 20 20 20 53 65 74 | 52 65 63 74 28 74 65 6d |. Set|Rect(tem|
|00001f60| 70 52 65 63 74 2c 6c 65 | 66 74 2b 34 2c 74 6f 70 |pRect,le|ft+4,top|
|00001f70| 2b 34 32 2c 72 69 67 68 | 74 2d 34 2c 62 6f 74 74 |+42,righ|t-4,bott|
|00001f80| 6f 6d 2d 34 29 3b 0d 20 | 20 65 6e 64 3b 0d 20 20 |om-4);. | end;. |
|00001f90| 20 20 0d 20 20 74 68 65 | 57 69 6e 64 6f 77 3a 3d | . the|Window:=|
|00001fa0| 20 4e 65 77 57 69 6e 64 | 6f 77 28 6e 69 6c 2c 74 | NewWind|ow(nil,t|
|00001fb0| 65 6d 70 52 65 63 74 2c | 27 75 6e 74 69 74 6c 65 |empRect,|'untitle|
|00001fc0| 64 27 2c 74 72 75 65 2c | 38 2c 70 6f 69 6e 74 65 |d',true,|8,pointe|
|00001fd0| 72 28 2d 31 29 2c 74 72 | 75 65 2c 30 29 3b 0d 20 |r(-1),tr|ue,0);. |
|00001fe0| 20 53 65 74 50 6f 72 74 | 28 74 68 65 57 69 6e 64 | SetPort|(theWind|
|00001ff0| 6f 77 29 3b 0d 20 20 0d | 20 20 43 75 72 72 65 6e |ow);. .| Curren|
|00002000| 74 54 6f 6f 6c 3a 3d 20 | 54 50 65 6e 63 69 6c 3b |tTool:= |TPencil;|
|00002010| 0d 20 20 43 75 72 72 65 | 6e 74 50 61 74 3a 3d 20 |. Curre|ntPat:= |
|00002020| 35 3b 0d 20 20 43 75 72 | 72 65 6e 74 53 69 7a 65 |5;. Cur|rentSize|
|00002030| 3a 3d 20 31 3b 0d 20 20 | 43 68 65 63 6b 49 74 65 |:= 1;. |CheckIte|
|00002040| 6d 28 6d 79 4d 65 6e 75 | 73 5b 54 6f 6f 6c 4d 65 |m(myMenu|s[ToolMe|
|00002050| 6e 75 5d 2c 31 2c 74 72 | 75 65 29 3b 0d 20 20 43 |nu],1,tr|ue);. C|
|00002060| 68 65 63 6b 49 74 65 6d | 28 6d 79 4d 65 6e 75 73 |heckItem|(myMenus|
|00002070| 5b 50 61 74 74 65 72 6e | 4d 65 6e 75 5d 2c 43 75 |[Pattern|Menu],Cu|
|00002080| 72 72 65 6e 74 50 61 74 | 2c 74 72 75 65 29 3b 0d |rrentPat|,true);.|
|00002090| 20 20 43 68 65 63 6b 49 | 74 65 6d 28 6d 79 4d 65 | CheckI|tem(myMe|
|000020a0| 6e 75 73 5b 50 65 6e 53 | 69 7a 65 4d 65 6e 75 5d |nus[PenS|izeMenu]|
|000020b0| 2c 43 75 72 72 65 6e 74 | 53 69 7a 65 2c 74 72 75 |,Current|Size,tru|
|000020c0| 65 29 3b 0d 20 20 0d 20 | 20 53 70 72 61 79 43 75 |e);. . | SprayCu|
|000020d0| 72 73 3a 3d 20 47 65 74 | 43 75 72 73 6f 72 28 31 |rs:= Get|Cursor(1|
|000020e0| 32 38 29 3b 0d 20 20 43 | 72 6f 73 73 43 75 72 73 |28);. C|rossCurs|
|000020f0| 3a 3d 20 47 65 74 43 75 | 72 73 6f 72 28 63 72 6f |:= GetCu|rsor(cro|
|00002100| 73 73 43 75 72 73 6f 72 | 29 3b 0d 20 20 45 72 61 |ssCursor|);. Era|
|00002110| 73 65 43 75 72 73 3a 3d | 20 47 65 74 43 75 72 73 |seCurs:=| GetCurs|
|00002120| 6f 72 28 31 32 39 29 3b | 0d 45 6e 64 3b 0d 0d 42 |or(129);|.End;..B|
|00002130| 65 67 69 6e 0d 20 20 53 | 65 74 75 70 4d 61 63 69 |egin. S|etupMaci|
|00002140| 6e 74 6f 73 68 3b 0d 0d | 20 20 53 65 74 75 70 4d |ntosh;..| SetupM|
|00002150| 65 6e 75 73 3b 0d 20 20 | 53 65 74 75 70 53 74 75 |enus;. |SetupStu|
|00002160| 66 66 3b 0d 20 20 49 6e | 69 74 43 75 72 73 6f 72 |ff;. In|itCursor|
|00002170| 3b 0d 20 20 0d 20 20 4d | 61 69 6e 45 76 65 6e 74 |;. . M|ainEvent|
|00002180| 4c 6f 6f 70 3b 0d 45 6e | 64 2e 0d 00 00 00 00 00 |Loop;.En|d.......|
|00002190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000021f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002200| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00002210| 20 69 73 20 6e 6f 74 20 | 65 6e 6f 75 67 68 20 6d | is not |enough m|
|00002220| 65 6d 6f 72 79 20 69 6e | 20 74 68 65 20 61 70 70 |emory in| the app|
|00002230| 0f 50 61 69 6e 74 54 6f | 6f 6c 44 65 6d 6f 2e 70 |.PaintTo|olDemo.p|
|00002240| 02 00 00 00 54 45 58 54 | 4d 50 53 20 01 00 00 00 |....TEXT|MPS ....|
|00002250| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 00 |..TEXTMP|S ......|
|00002260| 00 00 22 52 00 00 00 00 | 00 00 00 00 00 00 00 00 |.."R....|........|
|00002270| 00 02 9f ab 56 b4 00 00 | 21 0b 00 00 01 7e 73 65 |....V...|!....~se|
|00002280| 20 35 31 32 20 4b 42 3b | 20 66 6f 72 20 63 6f 6d | 512 KB;| for com|
|00002290| 70 69 6c 65 72 73 2c 20 | 75 73 65 20 31 20 4d 42 |pilers, |use 1 MB|
|000022a0| 2e 00 00 00 aa 00 01 00 | 00 00 00 00 00 00 00 ff |........|........|
|000022b0| ff db ef 04 46 69 6c 65 | 04 4e 65 77 c9 00 4e 00 |....File|.New..N.|
|000022c0| 00 05 4f 70 65 6e c9 00 | 4f 00 00 04 4f 70 65 6e |..Open..|O...Open|
|000022d0| 00 44 00 00 01 2d 00 00 | 00 00 05 43 6c 6f 73 65 |.D...-..|...Close|
|000022e0| 00 57 00 00 04 53 61 76 | 65 00 53 00 00 08 53 61 |.W...Sav|e.S...Sa|
|000022f0| 76 65 20 61 73 c9 00 00 | 00 00 0c 53 61 76 65 20 |ve as...|...Save |
|00002300| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 e7 01 d9 |...H..Mo|naco....|
|00002310| 00 e8 01 cc 00 e8 01 d8 | 00 f6 01 cc 00 f6 01 d8 |........|........|
|00002320| 00 f7 01 cb 00 f7 00 06 | 00 04 00 40 00 0c 01 4e |........|...@...N|
|00002330| 01 f8 00 40 00 0c 01 4e | 01 f8 9f ad ee 42 00 00 |...@...N|.....B..|
|00002340| 00 15 00 00 00 15 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00002350| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 02 5e 80 |...L...L|...2..^.|
|00002360| 02 f2 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00002370| 00 0a 03 ed ff ff 00 00 | 00 00 00 03 60 72 00 00 |........|....`r..|
+--------+-------------------------+-------------------------+--------+--------+